package com.hut.mst.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author JunHao Deng
 * @Title: 
 * @date 2021/03/22 19:48
 * @description：加载所有跳转html
 **/
@Controller
public class IndexController {

    @RequestMapping({"/","/login","login.html"})
    public String to_login(){
        return "/login";
    }

    @RequestMapping({"/index.html","/index"})
    public String to_index(){
        return "/index";
    }

    @RequestMapping("/head.html")
    public String to_head(){
        return "/head";
    }

    @RequestMapping("/head2.html")
    public String to_head2(){
        return "/head2";
    }

    @RequestMapping("/changepwd.html")
    public String to_changepwd(){
        return "/changepwd";
    }

    @RequestMapping("/left.html")
    public String to_left(){
        return "/left";
    }

    @RequestMapping("/main.html")
    public String to_main(){
        return "/main";
    }

    @RequestMapping("/p1.html")
    public String to_p1(){
        return "/p1";
    }

    @RequestMapping("/p2.html")
    public String to_p2(){
        return "/p2";
    }

    @RequestMapping("/p3.html")
    public String to_p3(){
        return "/p3";
    }

    @RequestMapping("/tab.html")
    public String to_tab(){
        return "/tab";
    }

    @RequestMapping("/user.html")
    public String to_user(){
        return "/user";
    }

    @RequestMapping("/useradd.html")
    public String to_useradd(){
        return "/useradd";
    }

    @RequestMapping("/userupdate.html")
    public String to_userupdate(){
        return "/userupdate";
    }
}
